#ifndef GAMEMAP_H
#define GAMEMAP_H
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <string>
#include "NLTmxMap.h"
#include <iostream>
#define M_ROWS 24
#define M_COLS 32


class GameMap
{
    public:
        GameMap();
        virtual ~GameMap();
        void print();
        int get_tile_data(int row_val, int col_val);
        int** get_tile_set();
        void draw(SDL_Surface* screen);
    protected:
    private:
       // SDL_Surface* map_surf;
        NLTmxMap* xml_map;
        char* tmx_tmp;
        int map_data[M_ROWS][M_COLS];

        SDL_Surface* image_load(std::string file_name);
        void* load_file(const char* file_name, bool appendNull);
        void pop_arry();
};

#endif // GAMEMAP_H
